package com.fastCms.business.bim.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fastCms.business.mall.pojo.entity.Product;
import com.fastCms.business.mall.pojo.po.ProductQueryPO;

import java.util.List;

/**
 * <p>
 * 产品主表 服务类
 * </p>
 *
 * @author lsquan
 * @since 2019-04-09
 */
public interface ProductService extends IService<Product> {

    Product findById(String id);

    List<Product> findProduct(ProductQueryPO queryProductPO);

    int countProduct(ProductQueryPO queryProductPO);

    int countByProductBrandId(String productBrandId);

    Product findByOrganizeCodeAndProductCode(String organizeCode, String productCode);

    List<Product> findToOnSale();

    int countByProductCategoryId(String productBrandId);

    List<Product> findByIdList(List<String> idList);

    List<Product> findRecommendProducts(String productId, String categoryId);

}
